package cn.iune.erp.accounting;

import java.sql.Date;
import java.text.ParseException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IAccountPeriodService {

	List<AccountPeriod> getByMasterID(String fMasterID);

	JSONObject save(JSONObject object) throws ParseException;

	int confirm(String fID);

	int active(String fID);

	int confirm(AccountPeriod a);

	int active(AccountPeriod a);

	int confirmByMasterID(String fMasterID);

	int activeByMasterID(String fMasterID);

	AccountPeriod getByNo(String yearNo, String periodNo, String enterpriseNo);

	List<String> getPeriodNoList(String yearNo, String periodNoStart, String periodNoEnd, String enterpriseNo);

	String getYearPeriodPrior(String yearNo, String periodNo, String enterpriseNo);

	String getYearPeriodNext(String yearNo, String periodNo, String enterpriseNo);

	AccountPeriod getByDate(Date orderDate, String enterpriseNo);

	String getYearPeriodNext(String yearPeriod, String enterpriseNo);

	String getYearPeriodPrior(String yearPeriod, String enterpriseNo);

}